import { http } from "@/utils/http";

/** 获取所有视频 */
export const getAllVideo = (params?: object) => {
  return http.request<any>("get", "/video/getAllVideo", { params });
};

/** 删除视频 */
export const deleteVideo = (params?: object) => {
  return http.request<any>("delete", "/video/deleteVideo", {
    params
  });
};

/** 添加视频 */
export const addVideo = (data?: object) => {
  return http.request<any>("post", "/video/addVideo", { data });
};

/** 修改视频 */
export const updateVideo = (data?: object) => {
  return http.request<any>("put", "/video/updateVideo", { data });
};
